fix #304 - better warnings for missing script type

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