Fixes a bug where the form validation fails, when the `dialogOptions.requireName` is set to `false`.

This only affected the Row Options dialog.