Fix crash when TMB API result is empty/malformed.

Solves #9