Throw errors if `PluginContainer.withId()` or `PluginContainer.withType()` are used with a plain rule source

+review REVIEW-5214