Fixed an issue where creating a rule with a null id via the HTTP API was allowed, which could lead to an inconsistent configuration.