fix get /?page=-1 occur 500
Merge pull request #360 from booxood/fix

fix get /?page=-1 occur 500