Extension function for List<T?> that allows getting an element at a specified index with a default value if the element is null or the index is out of bounds.
List<T?>