There is one issue in this fix. If an optional parameter which is not the last parameter is empty (and subsequent ones are not empty), the URL string created is wrong.
To handle this, two activities need to be changed.
The pyInvokeRESTConnector activity in the patch has a call to a data transform RemoveEmptyOptionalParameters. This needs to be removed and the same call to the same data transform needs to be placed at the top of Rule-Connect-REST.Invoke activity.