Sql limit accept null value

Restore the backward compatibility break introduced by the PR #4568 : accept `NULL` value for both methods `limit` and `offset`