Added view decorator for ElasticSearch check.

Created a view decorator to be used on views dependent on ElasticSearch
running. This simpifies error handling.