avoid javascript error if user saves without providing a datasource path
ID is what is displayed in the Layer UI to state them as equivalent in the error to avoid confusion
remove duplicate event
close #2210