NG-16582 Corrects issue when displaying files that came from the file system
Adds better testing around existence of baseUrl