TDI-30937 : Fix the tuj with log4j enabled
Fix NPE when flow connector is null