check the unionid key exist to fix the json exception and add sendTemplateMessage support

A fatal fix. Please release a new version.

I'm so sorry for the previous pull request.