fix(form): ignore properties in prototype chain in $error

Closes #10469