Fix crash on case-preserving replace
Fix crash on case-preserving replace

Task-number: QTCREATORBUG-8821

Change-Id: Icb843108bd48dd1266469667f318a5ef32b05e06
Reviewed-by: Orgad Shaneh <2b010cbad792a0c0a8175f752f93f83941fc6bc1@gmail.com>
Reviewed-by: David Schulz <f07954e8cc0c222cd136162588d217f330598215@digia.com>

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