Removed some php notices from the migration script