hdd_menu - fix possible std::logic_error