Fixed crash on exit when no map style file is specified