Not sure if that's intended as-is, but when calling getDirectory with undefined in chrome, chrome calls the callback with the same DirectoryEntry on which getDirectory was called on.
Calling getDirectory with undefined is probably always a bug, in order to be in line with chrome the shim should follow it's behaviour though, not sure which way is better.