#196630 by yched: postpone warning message display until batch finished, so messages are not forgotten on non-JS batches