Fix bug in logic for allowing overrides.

There was a bug in logic that allowed for slugs to be undefined under certain conditions.