Fix formParameters being reported at wrong line during validation