Fix typo in vault edit helper code

Fixes #9399