Sample app should not accept invalid URLs.

BUG=
R=jamesr@chromium.org

Review URL: https://codereview.chromium.org/745933002