Fix bug in platform.py to avoid the None value of config parameters. Signed-off-by: wuhuikx <wuhui_csu@163.com>