Fix wrong exception type when trying to use a released WebCLBuffer