fixed araqne/issue#554. fixed NPE of nested join query