Added onerror callback if no WAToken nor PBK is provided