SOAP-653: Fixed possible NPE trap in StubbedDialogs