Fix "make install" without JSON support

Don't bail out during `make install` when `./configure` was called without `--enable-json`.