Populate the revision dict if lastrev is not in it.

This allows avoinding a KeyError when the timestamp is extracted.

Bug: 54995
Change-Id: I1f97dac718dc6b645b1b35af4a894b84e14e6385
Merge "Populate the revision dict if lastrev is not in it."