Display templating error in cmd.script states

This shows the actual templating error instead of just returning that
there was an error with caching the script.
Raise SaltRenderError exceptions rather than suppressing them
Merge pull request #9347 from terminalmage/issue9158

Display templating error in cmd.script states