Added null list checking before enumerating.
Merge pull request #4 from caschw/master

Added null list checking before enumerating.