Motorman rewarded for flagging major railway safety issue