Fixed handling of DirectoryNotFoundException when trying to load media from non-existing directory