Fixed crash on malformed yaml

Following malformed yaml results in crash instead of proper YAMLException:

```yaml
foo: !!int
```

This provides a simple fix. If you need additional information, tests or anything else - I will be glad to help.