Template upload: fix 404 error

...when given link isn't accessible.
```python
except HTTPError as e:
```