Updated context menu api calls, improved stability

* Updated to non deprecated api methods
* Validation around extracting the domain from the tab url (it might not be there it seems)