Modified `MainWindow._getCommandInterpreter` function to raise a
`ValueError` when no command interpreter is available rather than
returning `None`.