(PE-1680) Properly validate limit parameter
Properly validate offset parameter
Explicitly return nil
Merge pull request #677 from shakedown/bug/burgundy/pe1680-validate-limit-input

Properly validate limit & offset parameters