Default the path to an empty string

Otherwise, the patterns such as the one in ff1395e0 will end up
stringifying None, which is not what we want.