Fixed the location search feature

A fix for issue #882. Previously I could not get the location search on the people page to work at all. This fixed the problem on my local machine. (Sorry, I'm a bit new at this)