Fix the handling of maps with invalid rules.

Fixes #6787.  This appears to have been regressed by the color validator changes (which access the map rules directly).