FIX: Crash when inserting vehicles in the depot window in some cases.