Fix crash in the error path in cl_newkernel().