Android: Fixed possible crash with a session being null