handle case of something non-iterable being passed in
Merge pull request #30 from Connexions/list-robustness

handle case of something non-iterable being passed in