Fix fatal error when baking controllers that use SessionComponent.