Fixed bug in replace-re when :all is nil and no matches are found.