Prevent a potential NullPointerException.

I got a NullPointerException in setTextboxModeStatic after I updated the Forge; this might not be a proper fix (or it might be a bug in Forge), but it sure as hell is better than a crash.