[12646] Initialize AI on vehicle after player control is set / removed

This will prevent aggressive behavion of vehicles when controlled by player

Also add safety check for TypeId Unit before setting the movement flags