Fixed possible exception in MediaLibrary on Windows 8
Merge pull request #3153 from SongArc/feature/win8_ioexception

Fixed possible exception in MediaLibrary on Windows 8