Add error fallback for AJAX call
Modified the error callback function for getQueue