[SHELL32] Do not dereference a nullpointer for logging. CORE-13552