[Trigger] Fix a few cases of nullptr dereference, part 2
Fix a few cases of possible nullptr dereference found by clang-tidy (warning: Called C++ object pointer is null [clang-analyzer-core.CallAndMessage])
Continuation of !45974 (merged)
Fix a few cases of possible nullptr dereference found by clang-tidy (warning: Called C++ object pointer is null [clang-analyzer-core.CallAndMessage])
Continuation of !45974 (merged)