Making try/catch blocks consient for jsyaml.safeLoad calls. Should fix #615