Make file loading more resilient

See (PICARD-605)[http://tickets.musicbrainz.org/browse/PICARD-605]