[FIX] mail: locate current menu using a safer method + check `undefined` case
[MERGE] [FIX] mail: locate current menu using a safer method + check  case