Check type of "path" before accessing it

This fix CC#1977
Without this commit:
>> a: func [/b] [1]
>> a/b/%
Segmentation fault

With this commit
>> a: func [/b] [1]
>> a/b/%
** Script error: incompatible refinement: %""