In Popup Menus the share item does not always have actionProvider, check for an actionprovider in the menu handler (fixes #3996)
Merge pull request #4006 from schwabe/fix_3996

In Popup Menus the share item does not always have actionProvider, check...