BaseController#index: do not paginate if @resource_per_page is nil

Conflicts:
	spec/controllers/base_controller_spec.rb