Check for NULL-pointer dereference in DlgPrefEq. "Fixes" Bug #1397984.