969280: Fix traceback on disconnected sub detach
Merge pull request #621 from candlepin/ckozak/disconnected_sub_remove

969280: Fix traceback on disconnected sub detach