Add mDestroyed null check

A NPE can happen if a message DO_DETACH is sent to the engine before
DO_ATTACH.

Test: treehugger (this CL does nothing except avoiding a crash)
Bug: 294826232
Change-Id: Ib344a3495ea1f92eebbb4f170f92c03b6e839612
1 file changed