Fix #6954 by migrating all "panelState" preferences if the key is a valid one.