Next tick fix

Highly technical fix to #487
should be
```if (nextTickQueue.length && nextTickQueue[0]) {```