Check two levels of context for profiling, prevents mob spawning from trying to spawn thousnads of mobs while profiling.

Signed-off-by: Ross Allan <rallanpcl@gmail.com>