Fix NPE when getInvitedId is null (game in progress or no invited player)