adding object check to avoid notice error on wp-login
Merge pull request #4 from norcross/master

Add object check to avoid notice on wp-login.php