Fix crash in sameValue if both address are null