Fixed a bug preventing document migration during the NLP migration process.