Fix bug with updating the logArch location

Sometimes the WMStats document doesn't exist
when trying to associate a logArchive location
this caused the update function to crash. Fix it.
Merge pull request #4624 from dballesteros7/fixWMStatsLocation

Fix bug with updating the logArch location