Added tests for empty usernames to user joined chat message.

Fixes #2443.