If doc is null then it now is returned as an object with success key
Refactored Store.mainStore.currentLocation to instance variable