Save document file when creating new component library from component in library editor. (fixes lp:1351952)