Fix exception for _get_db_version

An exception should now be correctly thrown if there is no comment in the database.

Fix for https://github.com/SpriteLink/NIPAP/issues/586