Fix fatal error comparing revisions

Change-Id: I295e387a54cf4d7067245d97c107e8d65deaca2c
Merge "Fix fatal error comparing revisions"