[CXF-5966] Fixing NPE