Don't build link hashes from nils