Fix `None` has no `len()`