UnitCreated and UnitDestroyed GetPlayerUnit bug

Fix a bug with GetPlayerUnit on UnitCreated and UnitDestroyed events.