Bug 876548 Null-check the DB Service to try to avoid crashing during shutdown