Fix orphaned records when running update

When DataObject::update() is run with relation fields and the relationship
is new the relationship ID was not set on the DataObject. This patch fixes
this. Fixes issue 6195 in open.silverstripe.org (http://open.silverstripe.org/ticket/6195).