FileUtils: Add some safety checks to removeRecursively().
FileUtils: Add some safety checks to removeRecursively().

Change-Id: I657f8416081ce7d253f4a3ef9722a39ac34b5f24
Reviewed-on: http://codereview.qt.nokia.com/1955
Reviewed-by: Qt Sanity Bot <5581206bb7e0307f0d99eb71898ae6b694149ca5@ovi.com>
Reviewed-by: Eike Ziller <c142da16c73a95a82d35191bcc55b22835617128@nokia.com>

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