Fix detecting DEVICE_NOT_FOUND for bug workaround getting CL_DEVICE_TYPE_ALL