This issue is now fixed via:
https://github.com/discourse/onebox/commit/faa5ef8bee8ffb0b2d032029114b37f819590653