add nullptr guard assertion
add nullptr guard assertion

The previous check in checked in the wrong file.  This is the one which
actually adds that assertion.

jtbattle/wangemu,jtbattle/wangemu,jtbattle/wangemu,jtbattle/wangemu,jtbattle/wangemu