fix a findbugs issue
fix some findbug issues
fix findbug issue
fixes #143

While reading the corpus config thing could go wrong, since some tables not
exists in the old database schema and the AnnisDao init process fails.