Fix appending new messages

Delete last message when appending new only if there are enough messages on the page.

(The age of the commit is half of the year, lol.)