fix: check if crit is loaded in alertcounter.count_by_crits()