Added a check for the existence of the $base_url value to the Kuality initialize method.