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.
@eddiemonge Sure thing, I've stdout hooking before in [logfile-grunt](https://github.com/brutaldev/logfile-grunt) so it won't be a problem. Let me fork and add the test.