Prevent NPE in pformat_len0.