FIX: Do not allow negative values for LIMIT (PR #14122)

Negative values generated invalid SQL queries.

GitHub