fixed issue with pending messages not displaying in header when it's nil or 0