flushqueue: handle case where an unregistered index is present