Pass additional parameters to the "insertTagFlags" hooks (see #5806)