Fixed the issue of takeLast(items, 0)
Fixed the issue about null values
Merge pull request #413 from zsxwing/take-last

Fixed the issues of takeLast(items, 0) and null values