Fix bug when newbie and banned users can obtain broken chat due to roleIds = null in JS.