Updating YAML parser to handle blank lines and malformed lines