Stop base_url with bad API

With wrong api string the base_url return the url function from base. This fix will rise error if API is unknown.