Fixes issue #46 by removing empty selectors