Add null check to InMemorySCMStore#serviceStop.