[docs] Fix live editor behaviour on badly compiled code