fix problem with Sets::has() where it failed on undefined