Handle empty revision links better

Fixes issue with handling missing previous or current revision links by
using RevisionInfo pointers internally and comparing against nil.