BS-2788
Fix stack trace during migration