Keep class menu open if user selects illegal class (fixes #131)