Fix axis range growing infinitely if we have no data or zero-range.

Fix axis range growing infinitely if we have no data or zero-range.