Catch only NameErrors when checking for superglobals

Bare except is bad, mmmkay