QGIS - Proper closing of rectangular polygons