Added missing check for non-empty next-tick queue.
Merge branch 'refs/heads/future-tick'