Fix detecting DEVICE_NOT_FOUND for bug workaround getting CL_DEVICE_TYPE_ALL

exception object does not match error code, needed to check by comparing error message