fixed NullReferenceException raising issue when empty cell found

NullReferenceException problem fixed.