Handle sync result that has no wait, fixes #435

Added test for that
Added removeAttribute to ProtocolTreeNode