Fix some clang warnings.
Dialog_Properties: Allow more null pointer checks.