MULE-7913: Fixing NPE when scatter-gather route returns null. Added test for scenario.
(cherry picked from commit f9277dcba5733ca3e945dd265394fe831a728c65)