Only trigger change event on hidden element if value truly changes.