Updated progress loader to only update if the document elemnt is present.

Change-Id: Ie537d4798bc0f50169d1973709c2dd4e8d8143f8