Discard NaN entries from groovy graphs

NaN entries are not plotted. This fixes bug 697.