Ensure document ready before auto download

Change-Id: Ibf7e82b4b13e9856fc0ad750671809fa89ce654a
Closes-Bug: 1359649
Merge "Ensure document ready before auto download"