Fix EZP-21930: searchreplace plugin generates an infinite loop while changing the case in IE9/10