Stability results for the finite element approach to the immersed boundary method