Return null instead of failing when requesting previous revision if there is none

Bug: 61393
Change-Id: I72496b5e61f42d094cc66a51a619b60232c4ab86
Merge "Return null instead of failing when requesting previous revision if there is none"