Do not call self.close() if there are no open dialogs.

Do this to not break the activeBackdrops semaphore.