Fix failure case on empty threshold fields in perfdata

Closes #3.

Signed-off-by: Sharif Olorin <sio@tesser.org>