Fixed invalid encrypted API token exception.

If the user edits the encrypted token in the registry or in the
installer, a FormatException was thrown. Fixed that by catching it and
setting an empty string as the token instead.

Also set real errors for URLs in the QueryAPIEexception class.