Ticket #1531: Close modal by clicking outside it