Adding a null check for the unauthorized
user case, while fetching a file.