Fix when for build fail when sonaUsername is not defined.