Update class-wc-json-api-result.php

added setToken, keep it empty if it's not set