Fixes #2082, Find Replace inf loop
Merge pull request #2188 from Manindra29/findReplaceILfix

Fixes #2082, Find Replace infinite loop