AppliedEnergistics/Applied-Energistics-2 — pull request #373 by yueh (2014-11-02 10:06:19+00:00)
Title: Moved getGrid() (WeakReference) to a local var

Moved `gs.getGrid()` to a local variable because it is backed by a `WeakReference`.
If we lose every strong reference, the GC might invalidate it at any point and will cause it to return null. Even if an earlier check for null passed with true.