Check params[:per_page] before settings[:per_page]

This fixes #12

Signed-off-by: David Celis <me@davidcel.is>