Weather: Fixed old location being used when changing provider

Also fixed a PHP warning when checking for empty array