Don't assume non-required global is set

Why does this thing assume this variable is set? This makes my tests crash in my testing environment where I have error_reporting set to report everything.