[imp][33896] Make delete template error message more helpful.
Closes #3824