NPE Stats service

Make sure intent is not null when the service is restart after being killed from system. Fix #1582