Fix get by sign method bugs
if token is none raise "'NoneType' object has no attribute 'encode'"
