Fixed issue with NaN tick positions being applied to empty axis, causing wrong number of ticks in chart with multiple axes. Closes #1741.
Merge remote-tracking branch 'origin/master'