Device state rotation: fallback to defaults for invalid ignored state

Detect when we have a persisted invalid ignored state, and fallback to
defaults.
This can happen when the ids of device states change.

This will cause persisted settings to be wiped, and defaults to be
used.

+ Add more logging for easier debugging

Bug: 269822414
Bug: 261968395
Test: Unit tests
Test: Dumpsys
Change-Id: I6d1845c758cac80ba5af14a6f6b2de40120bec0d
7 files changed