Fixed clCreateContext segfault with NULL properties
Fixed server side clCreateContext hang

For loop was infinite