Check both page and defLimit against negative values. Follow up of #6205 Co-authored-by: Federico Kunze <31522760+fedekunze@users.noreply.github.com>