check for console before using it.

sporadically at times on first access to duality we are presented with
the ReferencError("console is not defined") couchdb error.  attempt to
fix that by checking if console is defined.
/cc @ryanramage
0.0.2