Fix unsetting optional relation models.