Fix for modifying parsed nodes container during iteration.