Consider that the element type might be null. Refs #19362.