Handle null lastGc
Merge pull request #1 from blakesmith/last_gc_fix

Prevent NPE when handling lastGc variable