Mouse wheel scroll exception with collapsed RibbonTabItem

I have a ribbon containing six RibbonTabItems. If I set the visibility of one of the RibbonTabItems to Collapsed (I changed the penultimate one, but I'm not sure that it matters), when you scroll through the tabs using the mouse wheel, you get an unhandled
exception.