Actually, the validation if for the scripts on the front-end, so maybe we should add something on the back-end to print a JS var with a true / false value and that way make that validation work in every case, or maybe like you say we could listen to the beforeHtml event of that block and try to make it work that way.