Improve m2o/m2m editor rendering

Now editor is always visible even for empty record.
The validation check is disabled unless there is some
value given to the editor. In case of required m2o,
the validation is still performed.

Fixes RM-2806, RM-2807