NXP-14783: fix NPE when comparing arrays