Fixed bug with empty lists being removed jamming the script