Add a test for a workaround concerning the behaviour of third-party rule modules and `SynapseError`s. (#11071)