Does it seem to be clicking on? With the discoloration under the glass I would probably just buy a new one. Being a 50W they can be picked up for fairly cheap.
I had a 300w that looked similar and darn near caught my house on fire. Was doing a water change and noticed some smoke coming out from where it was discolored like yours. Luckily I was swapping it out with an inline heater and just tossed it.
If it is on the inside of the glass (hard to tell, I see bubbles on the bottom but look like they are on the outside) I'd play it safe and just replace it.