Update PathLikeSelector.select to handle empty selectors properly.