Fixed npe if playerunit was not found