Check if the newly selected option is the currently selected option to avoid an angular error when attempting to copy an object over itself