fix object undef in form error helper