[SPARK-4478] Keep totalRegisteredExecutors up-to-date

totalRegisteredExecutors keeps track of the number of executors
currently registered with the scheduler. This commit fixes SPARK-4478
bug by reducing the count when an executor is lost.