Fixed bug where bad URL would cause NULL to appear in output.