CXF-6601: avoid NPE