[AMQ-8395] Avoid possible NPE when sending advisory message

(cherry picked from commit f74992c1058eb8de051c1ce0779ba4f34ba39ed3)
1 file changed