Added check to exist baseUrl if not use base_url

That is caused by some plugin