Minor fixes for browser

- Fix flags for share intent
- Prevent classcast exception

Change-Id: If0257c0e34e030a2619cb5957ad8c852c5a496eb
2 files changed