500 -> better error message if location view breaks
better exception handling
pep8
correct logging message
merge master into commtrack-broken-setup
fix merge mistake
Merge pull request #5082 from dimagi/commtrack-broken-setup

500 -> better error message if location view breaks