Fix paging bug 56075 caused by 6f99d757 and another rev I cannot find.

Also fixing some error handling (some things were using .fail() instead of .reject(), other bugs)

Change-Id: Ic653d5c5dc4c6078e94a161f38172e4f08c957f0