When I mined a single locomotive without wagons, got this notice:
Error while running event on_preplayer_mined_item (ID 11) TrainsReader/events/globalEvents.lua:53: attempt to index field 'trainsWithSignalsArray' (a nil value)
Mined the same locomotive with wagon attached. Got what seems to be the same notice:
Error while running event on_preplayer_mined_item (ID 11) TrainsReader/events/globalEvents.lua:53: attempt to index field 'trainsWithSignalsArray' (a nil value)