Fixed issue with exception on export server when exporting a line chart with a gradient color and one single point. Closes #1487.