only add footer view when needed

this prevents issues with FastScroller which does not like the
last element of a list to have height 0.

 See https://code.google.com/p/android/issues/detail?id=62086&thanks=62086&ts=1384147033