Fix error in viewer when mpl is installed but not qt