Fix error with missing MetadataStack in GroupsExclusionStrategy.

The error was triggered by Nelmio\ApiDocBundle, since it calls the
exclusion strategy without a MetadataStack present.