Don't create hash for nil id