Fix possible crash when looking for version control for directory
Fix possible crash when looking for version control for directory

Task-number: QTCREATORBUG-9656

Change-Id: If8babdb942830bd11fe360a311c57b75312248be
Reviewed-by: Orgad Shaneh <2b010cbad792a0c0a8175f752f93f83941fc6bc1@gmail.com>
Reviewed-by: Jake Petroules <2d627e1cecd5435752fa500bacbe05f7cc90c369@petroules.com>

danimo/qt-creator,maui-packages/qt-creator,kuba1/qtcreator,omniacreator/qtcreator,maui-packages/qt-creator,kuba1/qtcreator,AltarBeastiful/qt-creator,amyvmiwei/qt-creator,xianian/qt-creator,omniacreator/qtcreator,richardmg/qtcreator,xianian/qt-creator,xianian/qt-creator,martyone/sailfish-qtcreator,danimo/qt-creator,darksylinc/qt-creator,malikcjm/qtcreator,farseerri/git_code,amyvmiwei/qt-creator,xianian/qt-creator,martyone/sailfish-qtcreator,darksylinc/qt-creator,darksylinc/qt-creator,kuba1/qtcreator,amyvmiwei/qt-creator,Distrotech/qtcreator,martyone/sailfish-qtcreator,martyone/sailfish-qtcreator,AltarBeastiful/qt-creator,colede/qtcreator,martyone/sailfish-qtcreator,farseerri/git_code,colede/qtcreator,maui-packages/qt-creator,farseerri/git_code,AltarBeastiful/qt-creator,danimo/qt-creator,danimo/qt-creator,amyvmiwei/qt-creator,omniacreator/qtcreator,xianian/qt-creator,farseerri/git_code,Distrotech/qtcreator,danimo/qt-creator,darksylinc/qt-creator,kuba1/qtcreator,omniacreator/qtcreator,farseerri/git_code,amyvmiwei/qt-creator,richardmg/qtcreator,kuba1/qtcreator,omniacreator/qtcreator,xianian/qt-creator,maui-packages/qt-creator,martyone/sailfish-qtcreator,farseerri/git_code,omniacreator/qtcreator,danimo/qt-creator,colede/qtcreator,darksylinc/qt-creator,Distrotech/qtcreator,AltarBeastiful/qt-creator,martyone/sailfish-qtcreator,AltarBeastiful/qt-creator,malikcjm/qtcreator,maui-packages/qt-creator,AltarBeastiful/qt-creator,richardmg/qtcreator,maui-packages/qt-creator,farseerri/git_code,malikcjm/qtcreator,richardmg/qtcreator,kuba1/qtcreator,danimo/qt-creator,amyvmiwei/qt-creator,Distrotech/qtcreator,amyvmiwei/qt-creator,amyvmiwei/qt-creator,Distrotech/qtcreator,martyone/sailfish-qtcreator,richardmg/qtcreator,darksylinc/qt-creator,Distrotech/qtcreator,maui-packages/qt-creator,colede/qtcreator,AltarBeastiful/qt-creator,kuba1/qtcreator,danimo/qt-creator,colede/qtcreator,colede/qtcreator,AltarBeastiful/qt-creator,malikcjm/qtcreator,darksylinc/qt-creator,malikcjm/qtcreator,xianian/qt-creator,darksylinc/qt-creator,Distrotech/qtcreator,malikcjm/qtcreator,xianian/qt-creator,kuba1/qtcreator,colede/qtcreator,richardmg/qtcreator,kuba1/qtcreator,danimo/qt-creator,farseerri/git_code,richardmg/qtcreator,martyone/sailfish-qtcreator,malikcjm/qtcreator,xianian/qt-creator,omniacreator/qtcreator