Missing null check (triggered e.g. by CppunitTest_dbaccess_dialog_save)

Change-Id: I2f78ca59bfebbcffd9a6d0309c49179457bd9172