BulletSim: rearrange code to prevent using null pointers when a
child mesh is not available when building a linkset.