Fix potential null pointer in BaseLayoutManager

If the adapter called a notifyItem (inserted,removed,changed) method before ny item entries had been created, a null pointer was thrown when the BaseLayoutManager attempted to clear the item entries.