Issue #2985275 by gordon, attisan: Exception when webprofiler is used in conjunction with domain access module