Correct list structure after enter press in an empty nested `li`

Issue #430.