Fix error reporting in new formparams code.