Wait until the index is available to report the viewer as finished

R=efortuna@google.com

Review URL: https://chromiumcodereview.appspot.com//93893008