Adds a try-except for OneToOne relationships with a null value