Ensure that dispatcher doesn't get empty during test. See #3251