Work around subprocess.CalledProcessError on Google App Engine

Set subprocess.CalledProcessError to None on restrictive environments
like Google App Engine because the exception cannot be raised and there
is no need to catch it. Fixes #1825 which broke after #1857.
Merge pull request #2860 from daradib/subprocess-google-app-engine

Fix subprocess.CalledProcessError on Google App Engine