Work around a race condition on loading

There were some cases when we tried to reload the annotations
(upon detecting auth state) even before the store plugin
was initialized, and this caused an error message.

This check works around this problem.

Fixes #899.