Fixed NoneType bug in read_b64