Fix null check in invocation logging

Bug: 141746592
Test: manual
Change-Id: I5c941208b982354b9b7df7fa959fd1a4847c70bc
1 file changed