[CB-7418][DirectoryEntry] Added fullPath variable as part of condition

As well as NativeURL property, the fullPath variable should be part of
the condition to avoid that a null value becomes a path, by adding a
slash at the end of the undefined string.
So in order to add a slash to it, fullPath should contain a value.