When deleting a post, check if upload exists before trying to delete it.