Fix NullPointerException when calling Migrant.format()