Replace null with undefined in clone method of jid.