Bug fixes

- Fix some major bugs that causes to server crash.
- Implement passing message as just string instead of object if user locale is not impornant.
`userIds` can be still null or undefined here for sendAll case.