Fixed issue causing EnhancedFileSystemWatcher to crash when checking if the path is for a directory in OnFileCreated.