added rescues for syntax errors in templates to prevent broken pages