Fix flask.ext.babel import for new version
Do not get LonLat for None objects

IPs like 127.0.0.1 return None for gic.record_by_addr(row.user_ip), so the location
has to be added only if the returned location is not None
Fix 127.0.0.1 None locations

This commit fixes the problem of getting the GPS coordinates from gic.record_By_addr
when the IP is 127.0.0.1 and returns None.
Refactor to use same approach as pybossa/stats.py
Merge pull request #570 from PyBossa/issue-569-flask-babel

Issue 569 flask babel