[NUCCORE-1102] Fix "nulls last" compilation