You attempted to use Null value as array subscript
index = Null;
value = Close[ index ]; // error 51.