WL-3640 Don’t fall over when no terms available.

Generally there aren’t any terms now so we need to cope when there are no terms in the drop down list.
Merge pull request #140 from ox-it/WL-3640

WL-3640 Don’t fall over when no terms available.