Check if container is set before setting charset
Because no container is set when requesting the installer