Fixbug: 168797. Cannot delete badge rule when userbadge present