MT#7705 Fix undef check in logger