Fix sanity check in AppInspectionEngine registration code