file.blockreplace: fix typo endswith
Don't fail on YAML parse/scan errors
Merge pull request #11618 from s0undt3ch/2014.1

Test cherry pick and CLI YAML parse fix