runtimes/js: error when converting too deeply nested payloads (#2480)