Adapt to the messagelib commit that requires a modelindex in
Pane::setCurrentFolder.
Also avoid calling setCurrentFolder twice when selecting a favorite
(once because the favorite selection changed, and once again because the
foldertreeview selection changed). This issue was pre-existing but
wasn't visible because it didn't populate the messagelist or created new
tabs.