Create a html element if it does not exists, to prevent out-of-bound err...

If we open 'vi' on an existing file (with more than 5 lines) and we push on "Pg Dn" then "Pg Up" we got an exception about a non-existing element.

These modifications create an element if it does not exists.