Fix for exception if json files are deleted.