Outlook 2016 for Mac won't return "current messages" from main window
I'm an applescript novice, but I was able to add the following code to close the reminders window if it was up when the script ran:

-- close the reminders window if it is open
set winName to name of the front window
if "Reminders" is in winName then
    close front window
end if