Fix NPE in Presence equality check