[SPARK-4250] [SQL] Fix bug of constant null value mapping to ConstantObjectInspector

Nit: why remove this to only have to add a more verbose `.asInstanceOf` below?