Fixes https://emqx.atlassian.net/browse/EMQX-12254
Added a validation to prevent duplicated topics when configuring a message validation.