Fixed migrate defect, allow migrate the empty directory Upstream-commit: 0a002f4ba813305a16f4ffb21488865601f0f18e Component: engine