DistortedHeightmap: Fixed crash on number rounding.

Fixes #1521.