Fix no completion on global namespace

follow_definition raise attribute error on global namespace. I am
not sure if this is a bug in jedi, since follow_definition should not
be used there.