Required for include+with* tasks which may include files that also have tasks containing a with* loop. Fixes #12736