handle-unspents was not nil safe