have you tried hard-coding the event & templat...
# suitescript
a
have you tried hard-coding the event & template ID and see if you get the same error? if you get the same error then it probably is some weird NS thing; if you don't get the error then it could be some issue with your params object