Fixed uri parse error where scheme was nil