WICKET-5570 Rescheduling the same ajax timer behavior causes memory leak in the browser

(cherry picked from commit f6213fbad2c934be8ffdf20a634c85bcc35a36af)