This shouldn't happen that there is no migration ongoing, no? Else, you should probably even check if the pending migration == this ;)