CMS-1202 Browsing categories fails if contentKey is large number

Fix stupid double end-tags
Fixed a cosmetic error. 404 instead of 500 when visiting /site/ (without or illegal key).