Fix crash on removing menu folder with menu-cache 0.5.0.