Fix NPE when getInvitedId is null (game in progress or game without invite)

When one or more other games are in progress on other boards or games have been created but no player invited, it causes an NPE when any player runs "/chess join". This simple null check will fix this error without impacting any game logic.