Fixed an issue it objects getting added to incorrect layers if unknown entity types exist in the drawing