Fixed styles being deleted if URL unchanged

My previous PR for this spot would delete the style if the URL was not changed. This fixes this fatal mistake.