Fixed the error that occured in the javascript when loading cached reports that got deleted