Check nil in PublicKeyHash()