Fix for createCLBuffer

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