Skip resolveOperands for optional operands when they are absent to avoid out-of-bounds access on the empty types vector.