Accept empty string as parameter

I have to do it like this because path-to-regex doesn't like
asterisks in custom match parameters, infuriatingly