Fixed NullReferenceException in navigation property multiplicity check.