Setting owner permissions fails if the vhost was not added

Don't try to change the permissions if the vhost was not created, either because of a failed attempt to add the vhost or because we are test mode.