Handling error when trying to get the file contents from Dropbox