FIX: Replacing multiple vehicles sometimes failed when some vehicles of the relevant type or in the relevant line were in the depot at the time of attempting the replace.