Added check against Joint.bodyA and Joint.bodyB being equal

They are not allowed to be the same body, see assert in constructor of
b2Joint.