Prevent indexing a nil item