Make sure we always have the ID of a folder when fetching the unread/flagged count