No JSON if no API

If the API isn't enabled, then don't try (and fail) to show the JSON
link.

Fixes #206