[gh-842] Check that jQuery.fn.drupalSetSummary is defined

JS runs on all pages, including front end pages where that method is not available
Merge pull request #848 from ericras/issue-842

Closes #842 Check that jQuery.fn.drupalSetSummary is defined