protection against nullptr where extra code invoked for MSG::DEBUG
Fixes crashes in code invoked for msgLevel >= MSG::DEBUG with invalid objects
CC @jojungge
Fixes crashes in code invoked for msgLevel >= MSG::DEBUG with invalid objects
CC @jojungge