Fix `NoMethodError`.

This worked on 2.99 but was raising a `NoMethodError: [] for NilClass` on master:

RSpec.describe "group" do
  example("ex").metadata[:example_group][:example_group]
end
Merge pull request #1503 from rspec/more-metadata-regressions

Fix `NoMethodError`.