If the first comma-separated field of the input is not empty, echo the input and then execute the command.
xargs -I{} echo {} | awk -F',' '{printf "if [[ %s != \"\" ]]; then echo \"{}\"; fi;" $1}' | sh