more useful error message if no select element found