(b)No warrant of arrest shall be executed against any railway servant or any person working on a railway in the service of a contractor till notice of the intended arrest has been given to the proper officer of the railway or to the contractor or his representative.