Make log menu handling immune to (external) menu layout changes