Only create QuickTextureOverlay3d if valid

Externalized the validity check to a static method, which is called
before destroying the existing overlay and creating the QT overlay.
Avoids weird behavior when hitting the keybind while a thing is
selected.