Cope better with unknown commits and apps without a database