[SPARK-4304] [PySpark] Fix sort on empty RDD (1.0 branch)