Fixed Player.isOnline() returning true when the player isn't already log...

...ged in

This is an attempt to fix issues #296 and #156. I've tested it and it fixed both issues, but this needs to be carefully reviewed to avoid unwanted side effects.