Refactor isSectionMatchingRandomSection to be more robust against MAPI changes