Fix fatal error when using config file

When using a xml file in the command line the program gives a fatal error as the $container is undefined