Fix Clicking Top-Level Menu NOT delete cookies

If we have both multi-level and single-level items in the menu list, clicking the single-level menu item won't delete cookies.
So we'd better delete cookies in the situation.

I am NOT a native English speaker, so I wish you understand that.