MULE-8129: Fixing NPE when a config is present but not a listener.
(cherry picked from commit 5363264a41694b09716b3113d1ee757b528e5c1c)