HUE-1879 [oozie] Edit a java action twice is broken

toJS method should not modify "files" attribute in a node.