Fix 500 error on RSS/Atom pages. Not too happy about the fix.