Fixed iteration problem with QueryResult due to PDOStatement returning false instead of the expected null to signal that all rows have been retrieved