Fix listview None/int comparision

This should fix https://github.com/kivy/kivy/issues/1728.

I changed it minimally to keep populate's signature the same.