Fix crash in monotype validator