Fixes #5965 Ensure the inject for each item in a loop is un-altered