Sanitize input to offset() and limit()

See http://dev.kohanaframework.org/issues/4766.