Fixing duration bug for chatrooms that have no messages