Fixed landing page and handled infinite loops

Fixes #1063
Merge branch 'master' of github.com:WoltLab/WCF