Section 77-9-221 shall not apply:
to tramroads, mill roads and roads engaged principally in lumber or logging transportation in connection with mills;
to railroad systems under thirty miles long which do not run regular night schedules;
to any engine, the lighting equipment of which shall have failed during a trip, provided that it be shown that the equipment was in efficient and effective working condition when the trip was begun; or
to switch engines going to and returning from wrecks, or sent out on a main line to bring into a terminal a train, the engine of which has become disabled.