Check if the pool id have already been attached

Sometime subscription-manager returns an error but have subscribed to
the pool ID. Add a check to ensure that the pool ID have been attached
and not let the subscription task fail.