Issue #22762:save bomhead prior to creating new bomitem