Endless loading of post history when latest revision is hidden/inaccessible

Are all the revisions hidden? This happened to me the other day. I solved it by hiding all the previous revisions, refreshed the page and the pencil disappeared. (tested with test user)