Fix: if dimDialog is null, don't monitor focus