Clear selected spell when window manager is cleared

The selected spell wasn't cleared properly and would continue to be selected after loading a save that had none selected. This caused severe problems with custom-made spells.