Fixed NPE on getting null item of collection.

Fixed NullPointerException on getting null item of collection.
Merge pull request #80 from Maros-1984/master

Fixed NPE on getting null item of collection.