fix(security): Fix regression with redirect_act in GENERIC_MOD (refs #4925)

Regression introduced by #4874.
Merge pull request #1242 from eguaj/3.2-A4925

fix(security): Fix regression with redirect_act in GENERIC_MOD (closes #4925)