[REST] JSON output: remove block infos from tx details if it is nested in block