TDI-30937 : Fix the tuj with log4j enabled
Fix the compile error when StringBuilder.append(null)