Fix crash in CalculateResolution.

Refs #10173.
Merge branch 'feature/10173_crash_in_calcres' into develop