Improve error message when reusing UI instance (#13457)

Change-Id: I49ec1e837a1a2a04dfadef5fd5fb5b6fd10ffcbc