WPF: Fixed crash when opening Effects screen.