ProjectExplorer: Fix potential crash when removing files
ProjectExplorer: Fix potential crash when removing files

Change-Id: I0973d92ae5bdcc89482a55f011d55bc7383b757b
Task-number: QTCREATORBUG-5961
Reviewed-on: http://codereview.qt-project.org/4877
Reviewed-by: Qt Sanity Bot <5581206bb7e0307f0d99eb71898ae6b694149ca5@ovi.com>
Reviewed-by: Daniel Teske <d8a411aec9a206efedb4d45b75fe8d13f1e2b628@nokia.com>

omniacreator/qtcreator,colede/qtcreator,xianian/qt-creator,omniacreator/qtcreator,duythanhphan/qt-creator,bakaiadam/collaborative_qt_creator,hdweiss/qt-creator-visualizer,farseerri/git_code,danimo/qt-creator,richardmg/qtcreator,kuba1/qtcreator,xianian/qt-creator,kuba1/qtcreator,malikcjm/qtcreator,ostash/qt-creator-i18n-uk,darksylinc/qt-creator,amyvmiwei/qt-creator,duythanhphan/qt-creator,darksylinc/qt-creator,bakaiadam/collaborative_qt_creator,malikcjm/qtcreator,danimo/qt-creator,syntheticpp/qt-creator,martyone/sailfish-qtcreator,danimo/qt-creator,AltarBeastiful/qt-creator,amyvmiwei/qt-creator,xianian/qt-creator,farseerri/git_code,malikcjm/qtcreator,kuba1/qtcreator,duythanhphan/qt-creator,amyvmiwei/qt-creator,amyvmiwei/qt-creator,KDAB/KDAB-Creator,maui-packages/qt-creator,ostash/qt-creator-i18n-uk,ostash/qt-creator-i18n-uk,danimo/qt-creator,richardmg/qtcreator,KDE/android-qt-creator,KDAB/KDAB-Creator,colede/qtcreator,malikcjm/qtcreator,AltarBeastiful/qt-creator,syntheticpp/qt-creator,jonnor/qt-creator,jonnor/qt-creator,omniacreator/qtcreator,malikcjm/qtcreator,ostash/qt-creator-i18n-uk,martyone/sailfish-qtcreator,ostash/qt-creator-i18n-uk,omniacreator/qtcreator,omniacreator/qtcreator,farseerri/git_code,kuba1/qtcreator,maui-packages/qt-creator,kuba1/qtcreator,maui-packages/qt-creator,maui-packages/qt-creator,xianian/qt-creator,danimo/qt-creator,ostash/qt-creator-i18n-uk,colede/qtcreator,bakaiadam/collaborative_qt_creator,KDE/android-qt-creator,martyone/sailfish-qtcreator,xianian/qt-creator,xianian/qt-creator,colede/qtcreator,syntheticpp/qt-creator,maui-packages/qt-creator,martyone/sailfish-qtcreator,kuba1/qtcreator,colede/qtcreator,Distrotech/qtcreator,azat/qtcreator,richardmg/qtcreator,KDE/android-qt-creator,martyone/sailfish-qtcreator,hdweiss/qt-creator-visualizer,richardmg/qtcreator,hdweiss/qt-creator-visualizer,syntheticpp/qt-creator,danimo/qt-creator,kuba1/qtcreator,syntheticpp/qt-creator,KDE/android-qt-creator,KDE/android-qt-creator,farseerri/git_code,xianian/qt-creator,syntheticpp/qt-creator,AltarBeastiful/qt-creator,AltarBeastiful/qt-creator,AltarBeastiful/qt-creator,farseerri/git_code,darksylinc/qt-creator,bakaiadam/collaborative_qt_creator,hdweiss/qt-creator-visualizer,kuba1/qtcreator,Distrotech/qtcreator,jonnor/qt-creator,Distrotech/qtcreator,amyvmiwei/qt-creator,Distrotech/qtcreator,azat/qtcreator,malikcjm/qtcreator,maui-packages/qt-creator,danimo/qt-creator,KDAB/KDAB-Creator,martyone/sailfish-qtcreator,richardmg/qtcreator,azat/qtcreator,danimo/qt-creator,jonnor/qt-creator,duythanhphan/qt-creator,farseerri/git_code,danimo/qt-creator,xianian/qt-creator,amyvmiwei/qt-creator,Distrotech/qtcreator,KDE/android-qt-creator,bakaiadam/collaborative_qt_creator,Distrotech/qtcreator,richardmg/qtcreator,KDE/android-qt-creator,jonnor/qt-creator,colede/qtcreator,kuba1/qtcreator,martyone/sailfish-qtcreator,AltarBeastiful/qt-creator,farseerri/git_code,farseerri/git_code,duythanhphan/qt-creator,hdweiss/qt-creator-visualizer,jonnor/qt-creator,martyone/sailfish-qtcreator,bakaiadam/collaborative_qt_creator,xianian/qt-creator,KDE/android-qt-creator,duythanhphan/qt-creator,KDAB/KDAB-Creator,darksylinc/qt-creator,malikcjm/qtcreator,colede/qtcreator,bakaiadam/collaborative_qt_creator,darksylinc/qt-creator,KDAB/KDAB-Creator,azat/qtcreator,omniacreator/qtcreator,amyvmiwei/qt-creator,azat/qtcreator,darksylinc/qt-creator,Distrotech/qtcreator,amyvmiwei/qt-creator,syntheticpp/qt-creator,omniacreator/qtcreator,hdweiss/qt-creator-visualizer,richardmg/qtcreator,AltarBeastiful/qt-creator,KDAB/KDAB-Creator,maui-packages/qt-creator,martyone/sailfish-qtcreator,AltarBeastiful/qt-creator,darksylinc/qt-creator,azat/qtcreator,darksylinc/qt-creator,ostash/qt-creator-i18n-uk,duythanhphan/qt-creator