Fix NPE when using administrative variants of /login and /register commands
Treat the session as dead if player is null