Return early _generate_tasks if no source is given

Maybe we can insert this return safely