Merge pull request #3613 from demotu/master

Fix problem with legend if data has NaN's [backport to 1.4.x]