Make file loading more resilient

Partial solution for [PICARD-605](http://tickets.musicbrainz.org/browse/PICARD-605)