Fix for SPARK-1025: PySpark hang on missing files.