Fix revision validation on deleted entities

Change-Id: I4fc9fdfc3c35f79d3a5458602756396c0f549f23
Merge "Fix revision validation on deleted entities"