API now deals properly with updating of the DRAFT versions of datasets (closes #4034)