Fixes a nil error in critical hits tracking