I have not seen the issue/behavior you are reporting.
Maybe this macro would be of some help that I wrote back in 2015 that gets the Web Page Title and URL of the frontmost browser and it's frontmost window:
Get the Browser Page Title & URL for Safari, Chrome, or FireFox