fix check for undefined instead of false value for logger

Fixes #583

Not really sure how to check the output of console.log for this.
You should just assume it's not reassign. If you start to care about what other code can do underneath your nose you're going to have a really hard time.