Add fix for the issue #103

Add checking null for the LocalDatabase in Stopped(), GoOfflie() and GoOnline() method.