Fix issue #883

Check if points is an Array before parsing arguments.
Merge pull request #1002 from petarov/bugfix_883

Fix issue #883