dispatcher: fix crash at shutdown with incorrect table version