issue #22: don't let non-URLs crash tematres.get_terms

Users were pasting free-text subject headings into entity Topics
field.  tematres.get_terms() tried to follow these URLs and
crashed, taking down the page request.
With this change, tematres.get_terms() will validate the URL and
return free-text for non-URLs.