This adaptation of the OL ModifyFeature allows usage multilayer without specifying any default layer.
View the modify-feature-multilayer.js source to see how this is done.