Fix the bug for name is null but link name is not null.
Fix the bug for name is null but link name is not null.

HPCToolkit/hpctoolkit,zcth428/hpctoolkit111,HPCToolkit/hpctoolkit,HPCToolkit/hpctoolkit,HPCToolkit/hpctoolkit,zcth428/hpctoolkit,zcth428/hpctoolkit,zcth428/hpctoolkit111,zcth428/hpctoolkit,zcth428/hpctoolkit,HPCToolkit/hpctoolkit,HPCToolkit/hpctoolkit,zcth428/hpctoolkit111,zcth428/hpctoolkit,zcth428/hpctoolkit111,zcth428/hpctoolkit111