Fix closing lightbox when showing a new element in popup
- closing the lightbox was asynchronous.