Fix bug causing all shared badges to end up in badgekit system

This fixes a bug with template sharing that was causing all templates created in this manner to be put into the BadgeKit system, regardless of what the user's current context was.