Fixing the infinite loop issue when embedding a block that contains a form.