Issue 7615: Event handler script replaces inline script source