Avoid unnecessary calls to updateStyles after bean destruction