Fixes #87743 by getting the url in a variable before calling an event ha...

...ndler, and using that in the method that saves the store. Also, validation erros shown when first showing the dialog (wrongly displayed as the user has not even entered something wrong) are no longer displayed.