Fix Registry#getPendingMigrations() for case when direction is 'down'