Fix error when a scenario class is referenced but not in @scenario().