Fix error in getting non existent queue