Avoid loading empty: urls

r.js let's you define certain paths as "empty:" so they are skipped during optimization.

There's a piece of code in text.js that skips modules (see https://github.com/requirejs/text/blob/master/text.js). This patch applies the same trick to json.js.