Fixed the issue. You can read about it here:
Duplicate-of:
https://list.orgmode.org/ch3pr84mb3424cc6ea394573fd8642222c5...@ch3pr84mb3424.namprd84.prod.outlook.com
Thanks for the report! It's funny that we both ended up working
on this on the same day :P
I decided to go with my solution over yours as it seems the
wrapping done in 'org-babel-insert-result' uses the same logic as
mine.
Otherwise, your commit was spot on, high quality, and had a good
commit message. I do really appreciate you sending this even if
it is going to waste. I hope you send more patches in the future!
Morgan