Fix NRE when grabbing a stateful part from a container.

Unlike Destroy(foo), foo.DestroyJoint() will crash if foo is null.
Merge remote-tracking branch 'angavrilov/master' into fixes