I have a document exactly on this issue. I got it from a google search when
Basically it says you should bring the railings up to current code if there has been any work on it. It strongly suggests that if there are safety issues this should also be done.