Fixed a bug that couse NullPointerException when a stopAllQueue() was
reqquested before any queue had run