[CXF-6153] Fixing NPE