as I read it, the issue is with a None item in the list, not with an empty list (tests return empty string), still fixes a traceback