NXP-12858: fix NPE when getting chain output is Void type in trace printer