Handle cases where DB doesn't return the number of rows in the resultset. Fixes #32