Changes on subquery render to take into account limits
HTMLTableWriter npe