CLOUDSTACK-2578: NPE in deleting template from S3.