[SPARK-2364][STREAMING] ShuffledDStream run tasks only when dstream has partition items

 ShuffledDStream run tasks no matter whether dstream has partition items 

this patch fixed it
Also after `if` and `)`