Throw exception on invalid RecentChange types

Change-Id: I39279a13a2eb5891991e1c3b4bee0fafe844f1f2
Merge "Throw exception on invalid RecentChange types"