Remove commented out code.
Prevent division by zero exception.
Merge pull request #132 from henning-gerhardt/issue_128

Fix #128: Division by Zero while Calculate number of metadata and images