Fix parent dataset migration to the local DBS.
Merge pull request #4188 from HassenRiahi/FixParentDatasetMigration

Fix parent dataset migration to the local DBS.