Add code to prevent exception for new db columns

When we add new columns and the code is not deployed, moderation
would throw exception on unrecognized columns

Change-Id: Ibe13492ec1845d5861e41488ddd2b56559bf9587
(cherry picked from commit 8b011ea1696b88d7b63348c64262416064cf5299)
Associative array should not be accessed by numeric index

Change-Id: Ibe1997dde5b6488e75e17e9a90d00cc734f7c778
(cherry picked from commit 12897c5dc364449cd8cfd1548b021bf4188f8e86)
Gracefully handle empty pagination result

Pagination was mistakenly interpreting an empty result
set as result set containing a single null value.

Bug: 61349
Change-Id: Ia8afd0457baec1527ad8a7de3a656aa3b9b3d312
(cherry picked from commit 1257483033083ded06e3a82f02df3984df679fa6)
Merge "Associative array should not be accessed by numeric index" into wmf/1.23wmf14
Merge "Gracefully handle empty pagination result" into wmf/1.23wmf14