Fix crash when player unit is not available