NXP-14229: make sure layout counters are reset just before render response to avoid generating ids prefixed by '_1' on ajax requests