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.
Swap this conditional around, if you have a result do something, otherwise deal with it.