fix warnings found by dartanalyzer

R=jmesserly@google.com

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