Fix occasional NaN when automatically calculating heatmap radius