Remove ambiguous compare with the result of the function. 

Function wg_set_field return value <= 0 in all time, but "if" hope positive value. We must return NULL from wg_create_triple if some error occurs.