Mine has done that also, at first I thought the light was burnt out!
I just tapped on it and it sprung out, but then it did it again. The next time, I pulled out the assembly by taking out the screw that holds it to the door-jam. I worked the spring till everything was smooth again.
Miller