Implement (and rename) IDTable::GetDialog().
This allows for just one NULL pointer checks and callers are safe.
No need for a reference. Just use IDTable::GetDialog()