Throwing exception when invalid arguments are passed to cachedGetJSON()