Correcting NoneType stacktrace when trying to get json results.

It looks like someone forgot to change this. In the future, we'll
probably want to refactor and clean up this area of the code a bit.

Change-Id: I70a8c61e6c9c28f24c63b6c1b353b96e7fd9a20f
Merge "Correcting NoneType stacktrace when trying to get json results."