don't show layer popup selection if there is only one item
re-introduce resetting of attribute values
nodetool: fix crash when deleting last vertex (fixes #10367)