Template upload: fix 404 error

...when given link isn't accessible.