function dispatchCallback(progress_callback, data) {
    if (progress_callback) progress_callback(data);
}
Helper function to dispatch progress callbacks.

@param {ProgressCallback | null | undefined} progress_callback The progress callback function to dispatch.
@param {ProgressInfo} data The data to pass to the progress callback function.
@returns {void}
@private