fix exception if row contains null value

You can have null value in a spark row (reading from parquet, apply schema on csv file, ...) 
According to Row scaladoc, the nullity should be checked before using apply function with isNullAt