Fix Bug 922282 - Prevent invalid paging count being generated, which cau...

...sed some crashes

https://bugzilla.mozilla.org/show_bug.cgi?id=922282