fixes Errors thrown when null data are provided

when minimum for y is not resolved then 0 is set.
when maximum for y is not resolved then same value as minimum is set.
related to #460