Make sure queue exists before attempting to use it.