addSchema(): check for non-string URL as well as missing schema