Added a guard for uninitialized acc_runtime.opencl_data->device_data in profiling.