No communication if no gateway is set

Could anyone of the ros2 team say if this is intended behaviour (or at least determined by the middleware) or if this is a bug?