Fix some possible NPEs in commit deserialiser

Change-Id: I1d1538b233ceef21ca056217a74049e6283f7dfc