Fix issue #883

Check if points is an Array before parsing arguments.