Fix for Bug NMS-6378

Validate the mename of a maskelement when editing an event through the
Vaadin UI.