fixes bug 926945 - None type in API _scrub_list function
Merge pull request #1587 from peterbe/bug-926945-none-type-in-api-_scrub_list-function

fixes bug 926945 - None type in API _scrub_list function