ocl: add try-catch for OpenCL device getter