[CXF-6149] Fixing ContainerRequestContext and ClientResponseContext hasEntity implementations