[MAT-387] Fix segfault in jdispatch test