Fixed a bug in paged.js which caused the current page to be -1 when the source array is empty.