Update kaminari_extension.rb

I was running into this error:

ActionView::Template::Error (undefined local variable or method `max_pages' for #<Query:0x00000106e270f0>):

but it was easily fixed with my small change.
Merge pull request #136 from czahor/patch-1

Update kaminari_extension.rb