Fix segfault when no err_cb given