Fixed handling of empty revisions.