Fix crash when opening load/save options panel.
Fix crash when running Find References while a .xaml file is open.