Make ResourceExtractor.load throw a exception

Ref #283.