Added more checks to index ranges in linked list collection.