Fix incorrect usage of IVersionDocument.has_migrated