[Bug #8377] Add if statement to prevent any useless changeBubble events
(cherry picked from commit 84dab05750f251d32715a47062cb8aacf481e0ff)