Fix crash when the ListView has a header/footer.
Merge pull request #2 from gipi/fix-crash-with-footer

Fix crash when the ListView has a header/footer.