[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 becoming a path, by adding a slash at the end of the undefined string, resulting in 'undefined/'.

So in order to add a slash to it, fullPath should contain a value.