added case for undefined data so pagination returns empty

fixes an issue with undefined contexts from an empty result set being passed into the helper which throws an exception and breaks the renderer.  Not part of the keystoneJS demo and is only being used by custom themes that want to hide pagination altogether if none exists.