VE-1299: Fix. I discussed it pretty extensively with Ed Sanders from WMF and the solution endedup in upstream repo https://gerrit.wikimedia.org/r/#/c/144067/ - so this commit is just a merge of that solution.
Merge pull request #4045 from Wikia/VE-1299

VE-1299: Fix. I discussed it pretty extensively with Ed Sanders from WMF...