migration: Fix the re-run check of the migrate-incoming command