Fixes an issue with empty nested JsonArrays.
Returns the cached object if there was an error on the server or if there is no data connection available. (Thanks, @diegolima - pull request #6).