file.blockreplace: fix typo endswith
Don't fail on YAML parse/scan errors