fix #283, error on late startup

This looks better although doesn't `this._pendingQuery != null` cause a jshint error since it's `!=` rather than `!==`.   In any case I think you can just do `if (this._pendingQuery)`.