[CXF-5795] Prevening misleading NPE