Fixed issue #595 about null in toList operator
Merge pull request #633 from zsxwing/fix-issue-595

Fixed issue #595 about null in toList operator