Fix scoping issue

If a "json" method is defined in a helper, defined?(json) returns
"method"; the json ||= ... assignment still happens because the variable
named "json" is not set. However, json.target! never gets called,
resulting in a blank jbuilder template