[generic plugin] fix whitelistRecord undefined