public/js/app.js: OnConnection lost the path-list becomes empty avoiding duplicate items when connection is re-established