check if AttributionControl exists before adding/removing it

i've add a null check to see if AttributionControl exists before adding/removing it - it caused a crash when not enabled.