Added missing check to FilesystemLocator