Fix bug with empty find queries