Filaments on lamps can go intermittent, the filament wire sometimes waves about and makes contact with the other terminal and works for a while. However it needs changing as it will undoubtedly let you down. Certainly not worth getting stopped by Mr. Plod for such a cheap item.
Mike.