SPARK-1630: Make PythonRDD handle NULL elements and strings gracefully

Have added a unit test that validates the fix. We no longer NPE.