mod_menu: make .do_menuedit element lookup less dependent on html structure. Fixes #678