Fixed bug where empty layer causes import to fail

On importing a layer with no polylines the module crashes. Checking if the default pointlist is empty allows the program to resume gracefully