Refactor socialWidgetContentScriptData getter

Fixes console error when aWin is null.