Handle enter press in empty nested `li`

This is to fix issue #430.

Currently, a single failing test.