Simplify AddOptionalParameterToInvocationAction. This should fix UDC crash 5207.