Fix #52, support relationships with null values