fixed a npe caused by trim
Merge branch 'dev' of github.com:intermine/intermine into dev