Fix for Github issue #59, segmentation fault after failing to load external schema

Fix for Github issue #59, segmentation fault after failing to load external schema