Add check in case no data is present.

Hi, great directive!

I noticed that if you pass the callback an empty array it errors because listView never has any data set.

I changed the conditional to be a bit more robust.

Thanks!