[core] better handle whitelist loading error