Issue 12505 - Null pointers are pretty-printed even when hex output is requested

https://d.puremagic.com/issues/show_bug.cgi?id=12505