Fixed #54: Error when pressing 'down' on last item

I added a check if the `li` element is effectively is a `li`. 
Also removed `LastLi`, it wasn't even a `li` element and the if(LastLi) was superfluous.