modules/pua: do not override send_publish return value at error