Update stringTemplateEngine.js

Its easier to be a developer when a error is thrown :) a few times now I used this script and there are some cases with nested templates where knockout do not pick up by itself that a undefined template is returned.
minor code style tweaks