Core/Vehicles: Fixed a crash that happened during seat changes searching for a previous free seat

Closes #9609