Fix runtime error when no shared examples are available in the current context