Improve the error message for an empty selector.