Check if twttr is defined before calling widgets.load()