Added sandboxing to CommentDetailDisplayHook

This change adds exception handling so that broken extensions which use
CommentDetailDisplayHook won't take down the reviews page. This includes new
unit tests for this behavior.

Testing Done:
Unit testing - tested both render_review_comment_detail and
render_email_comment_detail with and without sandboxing

Reviewed at https://reviews.reviewboard.org/r/5709/