Fix share/embed QUnit tests on 1.24wmf5

Change-Id: Ia305d64a28f2e6aa3f181389b9a91df026cecef2
Mingle: https://wikimedia.mingle.thoughtworks.com/projects/multimedia/cards/643