Made a change to displaying the stats URL.

Made a change to displaying the stats URL. If it is not set, it won't
display the link on the chat page and sets $data['stats'] to being
empty.