Fixes validation of caching rules

Change-Id: I1e4b8a48847890c58e612455d56e02e3583533db
Closes-Bug: 1405276