We need to add a stronger validity check to ensure no NULL lines are passed to the extend lines/polygonize tools
we need to filter and possibly notify the user the null lines which apparently can be generated (lines in the db but without geometry data). It is already done in the geopandas implementation but not in the pure pyQGIS one