In the beta instance, visiting a random article like
http://en.wikipedia.beta.wmflabs.org/wiki/Marching_arts as anonymous user does not show ULS cog in the interlanguages position($wgULSPosition = 'interlanguage')
This happens only for articles without inter language links.
The #p-lang element is hidden by Wikibase extensions wikibase.client.nolanglinks modules css:
This was injected by Wikibase Clients onBeforePageDisplay hook and happens when no language links to be shown.
Cannot say this as a bug from Wikibase Client, it is done for a purpose, but we need to find a way to make both extensions work together.