Add checks for empty summary and empty list.
Merge pull request #3 from sander1/master

Add checks for empty summary and empty list.