Only log console messages if there's a spec in progress.

Frameworks that logged to the console during initialization
(eg EmberJS) were causing an error because logs[-1] was
undefined. For bonus points, Ember helpfully swallowed this
error in development and carried on, meaning that all the
tests would mysteriously fail instead...