Make sure we are not assigning None as the jar.

If the parent is not yet added to a jar, then the sub-object is safe too,
since the first time the parent is stored, the sub-obejct will receive the jar.