Fix bug in source datasets migration

Wrong dataset type was causing the default package schema to be used,
thus failing when providing an id.