Right now it can get really messy if the train has frontmovers and backmovers and is toggled between auto- and manualmode (for whatver reason) while waiting at a station.
LuaTrain should be nil if the train is not at a station/stop (trainstop or station?
