Handle an IndexError in the menu module (see Issue #31).