fix panic when trying convert a spark-sql nil in resultset