Avoid outputting an error message 'currentContext is null - EXCEPTION-10'