Fix exception in _get_db_version

Throw an exception if there is no comment in the database
Fix for https://github.com/SpriteLink/NIPAP/issues/586