Fix a bug where the uri field was not sent in some cases when creating a new trigger