When find and replace searching used with regex, at the time of replace
empty CASE END condition was causing issue.
Fixes#17388Closes#17641
Signed-off-by: Ankush Patil <aspraz2658@gmail.com>
Signed-off-by: Maurício Meneghini Fauth <mauricio@fauth.dev>