Prevent chart crashes browser with non numeric y axis value