Added a missing check in RemoveAt(int index)