FOR-1507: Improve button validation.
FOR-1507: Improve button validation.

At first, we attempt to read `isValid` property of the value,
and if not, use root method.

formio/formio.js,formio/formio.js,formio/formio.js