Ticket #1405: Fixing reports when inside a modal.