Bug 1069808 - Make the LazyLoader.getJSON() helper invoke reject() in case of errors instead of resolving the promise to null