Defend (rather badly) against malformed ids.

See the comments on
http://bluebones.net/2013/10/compare-weather-minimalist-web-app/#comments