Added check for invalid keys. REALLY mangled YAML can still cause some
problems.