A random YamlNode fix: throw IAE, not NPE