fix Issue 12934 - Strange newly implemented VRP behavior on foreach
Merge pull request #3674 from 9rnsr/fix12934

Issue 12934 - Strange newly implemented VRP behavior on foreach