Chrome extension: Detect when access is denied

... during the deployment process, and display an error message
that might help the user the fix the problem by granting
the "Allow access to file URIs" permission to the extension.

Fixes #1663.