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