Fixed bug in Migrate where deprecated notices stopping execution

Fixed bug in Migrate where deprecated notices stopping execution