Fix oid tostr issue with NULL oid

I made a small change to the behavior of this code and apparently
got it wrong. Sigh.