Fix auto_ticks near-inf values calculations

When start value is near 0.0 and end value is near inf then this expression can overflow.
```
end + (tick_interval / 2.0)
```