Fix will_paginate and kaminari together

In admin pages of tr8n from a project using will_paginate this fix
is needed to see tr8n admin pages or this error will happen:
"Called id for nil, which would mistakenly be 4 -- if you really wanted
the id of nil, use object_id"