Fix CID#1436912: Dereferencing null pointer "msginfo->folder"