bootmenu: fix menu API error handling