Resolve rare duplicate URL Alias Bug

On a few open cart websites we have worked on, sometimes there is a duplicate url_alias entry for a category (generally they have a lot of categories).
This change resolves the issue when editing the category again.