Avoid method missing when calling assume_migrated_upto_version

This pull request fixes issue #10411.