Datastream versions parent was set to the latest version of the datastream rather than the object it belongs to, this cause problems with calling parent functions such as getDatastreamContent() which were expecting the parent member to be an object.