Fix crash if no qt version is registered

Change-Id: Ib3b4b2379999061b04923b98044ed83743cd6423
Reviewed-by: Alessandro Portale <alessandro.portale@digia.com>