MODE-1829 - Fixed parsing of leading wildcards