Lazily initialize the pretty-printed value.

(cherry picked from commit 3fc7bbc385f2ad6d8c9467e7503087a29d242dbc)