Use whenComplete so the condition runs even in error case.

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