Validate negative numbers in the posts per page setting

issue #1236
- added validation to not allow number less than 0
Merge pull request #1236 from Tmeister/validate-negative-post-per-page