check for NULL when parsing yaml to avoid meltdown