[Shopmium-ios, TiBaseActivity] Avoid crash into TiBaseActivity by testing null

Into shopmium application it happens that dialogs list contains
DialogWrapper without
dialog. This lead to NullPointerException.