Fix to set the paging total record count to zero when the result is null.