Remove content that throws YAML Exceptions