mapfishapp - call edit.deactivate() on before layer removed