Fix list view extra item bug

Unit testing the list view found that with one item childViewsLength can calculate to -1, causing 2 li items to render instead of 1.

childViewsLength should never be less than 0.