Forms: fixed lost error message on setRequired() [Closes #1151]