The editor assumes that there is always at least one line of (potentially empty) text. Otherwise there would be no place to put the cursor.
However, while implementing Editor:deleteLine(), I noticed that it is very easy to accidentally do just that and I ended up with some odd checks over there. This should probably be handled in makeModifier instead to make it impossible to begin with.