SHAPE_POLY_SET: fix crash in VertexCount when it is a empty poly set, or when params are incorrect. minor other fixes: warning in degug mode in dialog_dxf_import_base.cpp pcb_painter.cpp: remove a useless debug line.