Fixed error on reading from an iterator when no database is set in ThreadLocal