Fix assert on "Current Project" search without project

Task-number: QTCREATORBUG-10370

Change-Id: If512ea8cbbd77a9c39696093153455ca9e2bb83f
Reviewed-by: Eike Ziller <eike.ziller@digia.com>