fix NPE on Yaml parser error