Fixed crash on malformed yaml

Following malformed yaml results in crash instead of proper YAMLException:

foo: !!int