Make property optional only if to-one relationship marked as optional.