Fix migration errors during upgrades from 2.7.

https://github.com/Karaage-Cluster/karaage/issues/233

Change-Id: I764b519ae8fbcb40cd33171a1fc8777ae16d71ff