An earth was not required many many years ago, but obviously it is now.
So BEFORE you start work on any circuit like this you need to make a proper assessment of the safety of the circuit for continued use.
Generally replacing a single light fitting or switch due to it having been damaged etc will be fine as long as the new item is double insulated/has no exposed metal parts etc. But you should also make the owner aware of the situation and explain to them why it is sensible to think about and plan for rewiring the circuit(s).
There is a dodgy bit of advice floating around that suggests it is acceptable to fit an RCD and stick a little sticker on the CU as a method of resolving this issue, but this is not referenced in, nor compliant with, the regulations.
The suggestion originated with the NIC and even they stayed that it was only to be considered as a last resort if fixing it properly is impossible for whatever reason.