Fix handling of yaralib return values