fix problem in 404 that causes theme to be invalid HTML