Logic for theme duplicate check fixed.