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.