Hello Dave
I found some solution for this not tested very much. But for now it is looks working. Please change the code ..
if (!empty(esc_url($logo_url)) && intval($cosmica_show_logo)):
with the following line
if ((esc_url($logo_url)==true) && intval($cosmica_show_logo)):
All the best.