use empty string if referer is undefined
on entry to topic mark notifications read
0.5.0-2
closes #1947
Leave the chat window within the screen

On smaller screens, the top of the chat window can appear so high that it is outside the screen, this fixes that.
Merge pull request #1949 from filipsalpe/master

Leave the chat window within the screen