pua_xmpp: init printbuf_len and detect when no uri is provided