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

Do this to not break the activeBackdrops semaphore and after this, the backdrop will not be shown again.