Handle the case where the toolbar stats are loaded before the profile.
Since Anki 2.1.50, the "top_toolbar_did_init_links" hook is triggered before the profile is loaded, which raises an error because we need the profile to be loaded to be able to retrieve the stats.
Handle the case where the toolbar stats are loaded before the profile.
Since Anki 2.1.50, the "top_toolbar_did_init_links" hook is triggered before the profile is loaded, which raises an error because we need the profile to be loaded to be able to retrieve the stats.
https://github.com/kaegi/MorphMan/issues/262 https://github.com/kaegi/MorphMan/issues/273