Null Pointer Exception in Spark Application with Yarn Client Mode