Handles the case where there is no previous revision rather than throwin...

Unrelated change, should've been in a separate commit