Emit an error log line when attempting to connect to an app at an invalid URL.

BUG=431955
R=aa@chromium.org

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