Safely clear shared example groups

This micro fix avoids a possible nil error if `@shared_example_groups` has not been initialized yet.