webui: Do not save empty sbd device if there's a trailing , or space