WebPositive: refactor cancelling a download. Fixes #10960.