Avoid error if no content.

The homepage should still be generated.
This is useful especially in the beginning, where you start just with
the homepage.
Merge pull request #34 from VonC/homepage_gen

Avoid error if no content.