Fixed an error in createCLBuffer that occurs when the buffer size is zero.