Fix for github issue #59, segmentation fault after failure to load external schema