Hide YAML content on syntax errors when a vault password is specified

Fixes #6601
Merge pull request #7132 from jimi-c/issue_6601_hide_vault_yaml

Hide YAML content on syntax errors when a vault password is specified