fixed ZeroDivisionError in stats time counting
Merge branch 'master' of github.com:AIFDR/inasafe