[PLAT-5652] Fix for NPE adding merged outputs