Remove all references to an offline pack before the call to -removePackWithCompletionHander:. Cherry-picked from d64b8ad25c.
d64b8ad25c