goal: does not raise exception on empty selector (Related:RhBug:1127206)
cosmetic: removed unneeded semicolon