Fixing not calling taskDidComplete if there's no task delegate.