Avoid some NRE's in the logs.