Fix use of uninitialized variable (err)

  .. and fix the end of test_clCreateKernelsInProgram.c