cope with empty (i.e. text element-less) selections