Validate that we are not creating a mirror map that would panic the system
at a later time.

(cherry picked from commit efb1d31ba5655a33ff37bb5306424ff284523402)