Fixed error when queue tables don't exist