Prevent crash when Mx client's endpoint is only partially set