Bug fix for undefined/null condition

Bug fix for undefined/null return value of
Executor.getCurrentExecutingAMD.