SONAR-4996 Improve measure filter migration when values are at the end of the line