Fix issue with emptying editor when first element is a h1