Gatan: fix physical dimension parsing when the Z size is missing

Fixes #12478.