Fix #185: when y value is null, convert it to 0.
Merge pull request #190 from EverythingMe/fix_185_null_values

Fix #185: when y value is null, convert it to 0.