NPE fix due to wrong index collator

Fixed collation issue cause by improperly building the collates from
the input stream instead of the expression nodes