Avoid possible UnboundLocalError if some of the parameter type lists have no
elements.