Fix: Unset $groupchats variable in jappixmini produces syntax error

If $groupchats was unset, I got a javascript syntax error. This commit fixes that.