VID-2130 porting over whole file rather than one piece. Fixing race condition
Merge pull request #5320 from Wikia/VID-2130

VID-2130 Fixing gallery loading race condition