Fix cancel button reference loss when it's not at direct child

When the cancel button is not a direct child of the DOM elem with the attribute qqFileId the reference to the button is lost and the upload is retried instead of canceled.