Fix a bug that broke `default_renderer = json`.

Change-Id: Ie57feadb6efe664c1bc3c39debcb21c3355f210c
Fixes bug 1332501