handle bad empty path matching