[docs] Fix live editor behavior on badly compiled code