Fix Rescan on removed files

If you were to rescan a file that was deleted from the disk you would get a ton of unreadable json, this makes it pretty