Use correct period when manually generating reports.

fixes #3884
Merge branch 'master' of github.com:piwik/piwik