fixed negative number of active dialogs

fixed bug where activeBackdrops.value is negative due to multiple calls
to dialog "close"