refactored to make selector handling more robust
Merge pull request #140 from jackalope/no-empty-selector

refactored to make selector handling more robust