Prevent and log invalid cache entries.

Bug: 25413518
Change-Id: Id0a7384eccd25ba766feb0c568b4c16db2b6f6c8
2 files changed