NXP-16242: Fix NPE when script return no output