Check for basedir and baseurl

If these configuration values are not set php will throw an unnecessary NOTICE.