Fixed bug with InArena detection.

Signed-off-by: Michael Lippautz <michael.lippautz@gmail.com>