Fixes #6820 fix erroneous missing vault password error when using the template module