Fix deletion handling of rev_deleted