Fix a crash if no selector could be found