alfred.py: Make geo attribute setting more robust