Fix crash in CalculateResolution.

Refs #10173.
Merge remote-tracking branch 'origin/feature/10173_crash_in_calcres'