Fix some NULL handle usage.
Clean up some comments / minor in EmuThread.cpp.
Merge pull request #3157 from unknownbrackets/warnings

Fix some NULL handle warnings