Prevent crash when app.getDb() returns null
Merge pull request #341 from mapzen/chuck/crash-from-null-database

Prevent crash when app.getDb() returns null