Adding in endling for empty endpoints in URLUtils

See test