[OpenMP] Remove unnecessary pointer checks in a few locations

Also, return NULL from unsuccessful OMPT function lookup.

Differential Revision: https://reviews.llvm.org/D95277

GitOrigin-RevId: 480cbed31e74b0db3d31d78789b639af250ce9fe
2 files changed