Issue #2270821 by eshta: Fixed JavaScript error looking for visitor context on reports when none is available.