Fixes truncated accessions for terms #181
Checking against null, removed printouts, statement moved outside if/else