GC: remove redundant null checks.
Merge pull request #845 from Safety0ff/removeuseless

GC: remove redundant null checks.