handling empty result set with footer
fixes #25